# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models


# Create your models here.
class School(models.Model):
    name = models.CharField(max_length=20)


class Person(models.Model):
    first_field = models.CharField(max_length=20)
    second_field = models.CharField(max_length=20)
    foreign_key = models.ForeignKey(School)

    def __str__(self):
        return self.first_field + self.second_field

    def __unicode__(self):
        return self.first_field

    def __repr__(self):
        return self.first_field
